package com.itmk.user.service.impl;

import com.itmk.user.dao.SysUserDao;
import com.itmk.user.dao.SysUserDaoImpl;
import com.itmk.user.entity.SysUser;
import com.itmk.user.service.SysUserService;

public class SysUserServiceImpl implements SysUserService {
    private SysUserDao sysUserDao = new SysUserDaoImpl();
    @Override
    public SysUser login(String username, String password) {
        return sysUserDao.login(username,password);
    }

    @Override
    public SysUser getUserByPas(int userId, String password) {
        return sysUserDao.getUserByPas(userId,password);
    }

    @Override
    public void updatePassword(int userId, String password) {
        sysUserDao.updatePassword(userId,password);
    }
}
